<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="java.util.Iterator"%>
<%@page import="com.xhd.vo.Fruits"%>
<%@page import="java.util.List"%>
<%@page import="com.xhd.Dao.SalerDaoImpl"%>
<%@page import="com.xhd.Dao.SalerDao"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>上架水果</title>
     <link rel="stylesheet" href="./css/Inf.css"/>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
<style type="text/css">
	body {background: rgb(254,238,189);}
</style>
</head>
<body>
<c:if test="${ not empty sessionScope.user}">

	<form action="SalerServlet?method=addFruit" method="post" enctype="multipart/form-data">
	<div id="inf-box">
		<h1>上架商品</h1>
		<div class="form">
			<div class="item">
			   <i  style="font-size:24px"></i>
			  水果名：<input style="width: 150px; height: 20px;" type="text" name="fruit_name"/>		   
			</div>
			<div class="item">
			   <i  style="font-size:24px"></i>
			  水果简介：<textarea maxlength=255 placeholder="请输入水果描述，字数限制255" name="fruit_describe" rows="5" cols="30"></textarea>
			  		   
			</div>
			<div class="item">
			   <i  style="font-size:24px"></i>
			   水果图片：<input style="width:200px; height: 40px;" type="file" name="fruit_picture"/><br/>		   
			</div>
			<div class="item">
			   <i  style="font-size:24px"></i>
			   更多水果图片1：<input style="width:250px; height: 50px;" type="file" name="fruit_picture"/><br/>		   
			</div>
			<div class="item">
			   <i  style="font-size:24px"></i>
			   更多水果图片2：<input style="width:250px; height: 50px;" type="file" name="fruit_picture"/><br/>		   
			</div>
			<div class="item">
			   <i  style="font-size:24px"></i>
			   水果价格：<input style="width: 150px; height: 20px;" type="text" name="fruit_price"/>   
			</div>
			<div class="item">
			   <i  style="font-size:24px"></i>
			   水果库存：<input style="width: 150px; height: 20px;" type="text" name="fruit_stock"/>   
			</div>
		</div>
		<button>上架</button>
		<input type="reset" value="重置">
	</div>
	</form>
</c:if>
<c:if test="${  empty sessionScope.user}">
<h1>你还未登录！</h1>
<a href="SalerLogin.jsp">点击登录</a>
</c:if>
  </body>
</html>
